package cn.topcodes.tcsf.wechat.domain.form;

import cn.topcodes.tcsf.admin.commons.domain.Idable;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.Table;
import javax.validation.constraints.NotNull;

/**
 * Created by Unicorn on 2018/2/24.
 */
@Data
@Table(name = "t_wechat_user_tag")
public class WechatUserTagForm implements Idable {

    private Long id;

    @NotNull(message = "公众号ID不能为空")
    private Long wechatMpId;

    /**
     * 标签名称
     */
    @NotBlank(message = "标签不能为空")
    @Length(min = 1, max = 20, message = "标签名称为1~20个字符")
    private String tagName;

}
